Game = class('GameState'):include(Stateful)

-- main game init
function Game:initialize()
	self.player = Player:new()
	--love.keyboard.setKeyRepeat(true)
	
	self.images = {}	
	self.static_objects = {}
	self:gotoState("sim_world")		

end


function Game:keypressed(key, isRepeat)
	--print(key .. " pressed")
	if key == "escape" then
		love.event.quit()
	end
	self.player:keypressed(key, isRepeat)
end

function Game:keyreleased(key)
	--print(key .. " released")
	self.player:keyreleased(key)
end

function Game:mousepressed(x, y, button)
	print("mouse " .. button .. " pressed at x: " .. x .. " y: " .. y)
	self.player:mousepressed(x, y, button)
end

function Game:mousereleased(x, y, button)
	print("mouse " .. button .. " pressed at x: " .. x .. " y: " .. y)
	self.player:mousereleased(x, y, button)
end

function Game:quit()

end

require'src.game_states.sim_world'
